package AddonsSheepContoller.ASPlayer;

import org.bukkit.entity.Player;

public class ASPlayer {
    private final Player coreBukkitPlayer;
    private final ASAccount playerAccount;
    private final ASBankAccount playerBankAccount;


    public ASPlayer(Player orgBukkitPlayer, ASAccount asAccount, ASBankAccount bankAccount)
    { this.coreBukkitPlayer = orgBukkitPlayer; this.playerAccount = asAccount; this.playerBankAccount = bankAccount; }

    public Player getCoreBukkitPlayer() { return this.coreBukkitPlayer; }
    public ASAccount getPlayerAccount() { return this.playerAccount; }
    public String getNickname() { return this.coreBukkitPlayer.getDisplayName(); }
    public ASBankAccount getBankAccount() { return this.playerBankAccount; }

    public void setNickname(String nickname) { this.coreBukkitPlayer.setDisplayName(nickname); }
    public void playSound(String sound, float s, float f) { this.coreBukkitPlayer.playSound(this.coreBukkitPlayer.getLocation(), sound, s, f); }
}
